﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameEngine.ObserverInterfaces;

namespace GameEngine.Listeners
{
    public class SceneListener
    {
        private List<ISceneObserver> observers;

        public void NotifyAll()
        {
            foreach (ISceneObserver sceneObserver in observers)
            {
                sceneObserver.Notify();
            }
        }

        public void RegisterObserver(ISceneObserver sceneObserver)
        {
            observers.Add(sceneObserver);
        }
    }
}
